package com.zy.service.bs;

import com.zy.entity.bs.Activity;
import com.zy.pojo.query.bs.ActivityQuery;
import com.zy.pojo.vos.common.PageVo;
import com.zy.service.base.BaseService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ActivityService extends BaseService<Activity> {

	/**
	 * 分页
	 * 
	 * @param activityQuery
	 * @param start
	 * @param limit
	 * @return
	 */
	PageVo pageActivity(ActivityQuery activityQuery, Integer start, Integer limit);

	/**
	 * 新增
	 * 
	 * @param activity
	 */
	void saveActivity(Activity activity);
	
	/**
	 * 更新
	 *
	 * @param activity
	 */
	void updateActivity(Activity activity);

	/**
	 * 删除
	 * 
	 * @param id
	 */
	void removeActivity(long id);

	/**
	 * 恢复
	 * 
	 * @param id
	 */
	void recover(long id);

	/**
	 * 获取首页滚动 活动
	 *
	 * @return
	 */
	List<Activity> listActivityForHomePage();

	/**
	 * 平台活动
	 * @param activityQuery
	 * @param start
	 * @param limit
	 * @return
	 */
	PageVo pageFrontActivity(ActivityQuery activityQuery, Integer start, Integer limit);

	List<Activity> listFourActivity();

	/**
	 * 修改
	 *
	 * @param activity
	 */
	void updateActivityStatus(Activity activity);

    PageVo myActivity(Long userId, Integer start, Integer limit);

    PageVo myManagerActivityList(Long userId, Integer start, Integer limit);

}
